package org.benjamin.lending.domain.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by xywen on 2017/6/23.
 */
@Entity
@Table(name = "tab_borrow_contract")
public class BorrowContract implements Serializable {

    @EmbeddedId
    private BorrowContractIdentity identity;

    private byte[] content;

    @Column(name = "create_time")
    private Timestamp createTime;


    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public BorrowContractIdentity getIdentity() {
        return identity;
    }

    public void setIdentity(BorrowContractIdentity identity) {
        this.identity = identity;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
}
